package com.games.CleanTheOffice;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Menu extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //Set up click listeners for all buttons
        View newButton = findViewById(R.id.newgame);
        newButton.setOnClickListener(this);
        View highButton = findViewById(R.id.High_Scores);
        highButton.setOnClickListener(this);
        View settingsButton = findViewById(R.id.Settings);
        settingsButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.Exit);
        exitButton.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		switch (v.getId()){
		
		case R.id.newgame:
			Intent i = new Intent(this, Game.class);
			startActivity(i);
			break;
			
			/*
			 * Ainda nao foram implementadas
		case R.id.High_Scores:
			Intent i = new Intent(this, High_score.class);
			startActivity(i);
			break;
		case R.id.Settings:
			Intent i = new Intent(this, Settings.class);
			startActivity(i);
			break;
		*/
		case R.id.Exit:
			finish();
		}		
	}
}
